package com.whfc.hj.entity;

import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

/**
 * @Description: 常量定义
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-01-27 10:00
 */
public class HjConst {

    public static final Charset UTF8 = StandardCharsets.UTF_8;

    public static final String HEAD = new String(new byte[]{'#', '#'});

    public static final String TAIL = new String(new byte[]{'\r', '\n'});

    public static final String DATA_START = "CP=&&";

    public static final String DATA_END = "&&";

    public static final String PW = "123456";

    public static final String ST_22 = "22";
    public static final String ST_32 = "32";
    public static final String ST_91 = "91";

    public static final String CN_2011 = "2011";
    public static final String CN_2031 = "2031";
    public static final String CN_2061 = "2061";
    public static final String CN_2111 = "2111";
    public static final String CN_2131 = "2131";
    public static final String CN_2161 = "2161";

    /**
     * P：电源故障、F：排放源停运、C：校验、M：维护、T：超测上限、D：故障、S：设定值、N：正常
     */
    public static final String FLAG_P = "P";
    public static final String FLAG_F = "F";
    public static final String FLAG_C = "C";
    public static final String FLAG_M = "M";
    public static final String FLAG_T = "T";
    public static final String FLAG_D = "D";
    public static final String FLAG_S = "S";
    public static final String FLAG_N = "N";
}
